home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / PADFILEN.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  48 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   PADFILEN.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NB01.INC"
  22. $INCLUDE "DAS-NB02.INC"
  23. COLOR 7,0
  24. CLS
  25.  
  26. ? "┌──────────────────────────────────────────────────────────────────
  27. ? "│ fPadFileName$ ( FileName$, Length% )
  28. ? "├────────────────────────────────────────────────────────────────────
  29. ? "│ Just a little play-pretty for those menus and X-TREE listings.
  30. ? "└──────────────────────────────────────────────────────────────────────
  31. ?
  32. ? REPEAT$( 5, "┌──────────────┐" );
  33.  
  34. F$ = DIR$( "DMO\*.DMO" )                           ' is this correct?
  35. WHILE F$ <> ""
  36.   INCR Count%, 1
  37.   PRINT "│ "; fPadFileName$( F$, 12 ); " │";
  38.   F$ = DIR$
  39. WEND
  40.  
  41. Count% = ( Count% MOD 5 )
  42. IF Count% < 5 THEN
  43.   FOR X% = 1 TO ( 5 - ( Count% MOD 5 ) )
  44.     PRINT "│              │";
  45.   NEXT
  46. END IF
  47. PRINT REPEAT$( 5, "└──────────────┘" );
  48.